Discretionary access control (DAC) is a security model in which the owner of the resource grants or denies access to users or entities on objects such as a file or a directory.

Although access is entirely at the discretion of the owner, owners typically assign different permissions to different users or groups based on their roles, responsibilities, or relationships with the resource owner.

DAC provides flexibility and granularity, allowing resource owners to specify fine-grained access permissions for individual users or groups.

DAC typically relies on access control lists (ACLs) to manage access permissions. Here, the ACL is a list of permissions associated with an object (e.g., file, directory, or resource) that specifies which users or groups are granted specific types of access (e.g., read, write, execute) to the object. The owner can modify the ACL associated with the resource to change access permissions, add or remove users or groups, or delegate ownership rights.

DAC also grants users a high degree of autonomy and control over the access permissions of their own resources. They can decide who can access their files, directories, or other resources and what level of access those users are granted. This autonomy allows users to tailor access permissions to their specific needs and preferences.

DAC has some disadvantages, especially with respect to security. Because DAC relies on the discretion of resource owners, access control policies may end up being inconsistent or insecure.

If resource owners are not diligent in managing access permissions or if there are conflicts of interest, sensitive resources may be exposed to unauthorized access or misuse. Because the implementation of DAC typically does not include centralized management and auditing capabilities, it can be very challenging to enforce and monitor access control policies across large or complex systems.

DAC Examples

In Unix, a directory listing might yield “... drwxr-xr-x ... SSCP_File_1.txt”, meaning that the owner of SSCP_File_1.txt may read, write, or execute it, and that other users may read or execute the file but not write it. The set of access rights in this example is {read, write, execute}, and the operating system mediates all requests to perform any of these actions. DAC systems allow users to establish or change these permissions on files they create or otherwise have ownership of.

Consider this example. Steve and Aidan are two users (subjects) in such a Unix environment operating with DAC in place. Typically, systems will create and maintain a table that maps subjects to objects, as shown in the figure. At each intersection, there is the set of permissions that a given subject has for a specific object. Many operating systems such as Windows and the whole Unix family tree (e.g., Linux, IOS, and so on) use this type of data structure to make fast, accurate decisions about authorizing or denying an access request. Note that this data can be viewed as either rows or columns:

Figure: ACL for SSCP file 1

The U.S. Department of Defense Standard’s Department of Defense Trusted Computer System Evaluation Criteria (5200.28-STD) defines DAC as “a means of restricting access to objects based on the identity of subjects and/or groups to which they belong. The controls are discretionary in the sense that a subject with certain access permission [can pass] that permission (perhaps indirectly) on to any other subject (unless restrained by mandatory access control).”

This methodology relies on the discretion of the owner of the access control object to determine the access control subject’s specific rights. Hence, the security of the object is literally up to the discretion of the object's owner. DACs are not particularly scalable; they rely on the decisions made by each individual access control object owner, and it can be difficult to find the source of access control issues when problems occur.